package com.ab;

/**
 * Created by IntelliJ IDEA.
 * User: Anna.Bulenkova
 * Date: 21.10.11
 * Time: 18:49
 */
public class Utils {
    public static boolean isConnected(BinaryPoint pointOne, BinaryPoint pointTwo) throws IllegalArgumentException {
        boolean[] coordsOne = pointOne.getCoords();
        boolean[] coordsTwo = pointTwo.getCoords();
        if (coordsOne.length != coordsTwo.length) {
            throw new IllegalArgumentException("Only points from one dimension can be compared");
        }
        int mismatchCount = 0;
        for (int i =0; i < coordsOne.length; i++) {


        }
        return false;



    }
}
